package com.okwanshiwu.controller;

import com.okwanshiwu.constant.AppConstants;
import com.okwanshiwu.util.TipCode;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统控制中心
 *
 * @author
 * @create 2017-07-28 14:33
 **/
@RestController
@RequestMapping(value = "/system")
public class SystemControl {

	@RequestMapping(value = "/control",method = RequestMethod.POST)
	public String controlCenter(String filePath){
		AppConstants.reloadProp(filePath);
		TipCode tc = new TipCode(1001,"重新加载成功！");
		return tc.toJson();
	}

}
